import requests
from bs4 import BeautifulSoup
from lxml import etree
from lxml import etree
url = 'https://ssr2.scrape.center/'
tree= etree.HTML(requests.get(url).text)
imgs = tree.xpath('//div[@class="el-card__body"]//img')
title = tree.xpath('//div[@class="el-card__body"]//h2')
fs = tree.xpath('//div[@class="el-card__body"]//p[1]')
li = []
for i in range(len(title)):
    data = {
        'title': title[i].text,
        'img': imgs[i].attrib['src'],
        'fs': fs[i].text.strip()

    }
    li.append(data)
for i in li:
    print(i)